﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

namespace news.admin.cyt369.com.services.Models
{
    public class DocumentAudit : BaseObject<long>
    {
        /// <summary>
        /// 内容ID
        /// </summary>
        public long DocID { get; set; }

        /// <summary>
        /// 是否审核通过: 0-未提交审核，1-通过审核，2-未通过审核, 10-提交审核
        /// </summary>
        public int AuditStatusID { get; set; }

        /// <summary>
        /// 是否开启评论功能
        /// </summary>
        public bool CanComment { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public long? AuditUserID { get; set; }
        public string AuditUserName { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? AuditTime { get; set; }

        /// <summary>
        /// 审核信息
        /// </summary>
        public string AuditRemark { get; set; }


        [JsonIgnore]
        public Document Doc { get; set; }
    }
}
